// 定义前端向后端发送请求
import axiosInstance from "../utils/request";
// 请求首页数据
export const getData = () => {
    // 返回一个Promise对象
    return axiosInstance.get('/home/getData')
}

export const getUser = (params) => {
    return axiosInstance.get('/user/getUser', params)
}

export const addUser = (data) => {
    return axiosInstance.post('/user/add', data)
}

export const editUser = (data) => {
    return axiosInstance.post('/user/edit', data)
}

export const delUser = (data) => {
    return axiosInstance.post('/user/del', data)
}
